<template>
    <view class="bannerDetails">
		<view v-html="banner_info.content"></view>
	</view>
</template>

<script>
  import * as Api from '@/api/page'
  export default {
    data() {
      return {
         id: null,
		 banner_info: {}
      }
    },

    /**
     * 生命周期函数--监听页面加载
     */
   onLoad({ id }) {
   	console.log(id,'id')
   	// 当前订单ID
   	this.id = id
	this.getBannerInfo()
   },

    methods: {
	  //banner详情
	  getBannerInfo: function() {
		  const app = this
		  Api.bannerDetail({id: app.id})
            .then(result => {
              app.banner_info = result.data
            })
            .catch(err => {
            })
	  },
    }
  }
</script>

<style lang="scss" scoped>
 .bannerDetails{
 	 padding: 20rpx;
 }
</style>